import request from '@/utils/request'

// 查询模块模板参数列表
export function listPersonality(query) {
  return request({
    url: '/manage-api/business/moduleTemplatePersonality/list',
    method: 'get',
    params: query
  })
}

// 查询模块模板参数详细
export function getPersonality(personalityId) {
  return request({
    url: '/manage-api/business/moduleTemplatePersonality/' + personalityId,
    method: 'get'
  })
}

// 新增模块模板参数
export function addPersonality(data) {
  return request({
    url: '/manage-api/business/moduleTemplatePersonality',
    method: 'post',
    data: data
  })
}

// 修改模块模板参数
export function updatePersonality(data) {
  return request({
    url: '/manage-api/business/moduleTemplatePersonality',
    method: 'put',
    data: data
  })
}

// 删除模块模板参数
export function delPersonality(personalityId) {
  return request({
    url: '/manage-api/business/moduleTemplatePersonality/' + personalityId,
    method: 'delete'
  })
}
